<!doctype html>
<html lang="en">
	<head>
		<meta charset="UTF-8" />
		<title>
			Document
		</title>
		<hdjs/>
	</head>
	<body>
		<div class="wrap">
			<div class="menu_list">
				<ul>
					<li>
						<a href="{|U:'index'}"  class="action">
							栏目列表
						</a>
					</li>
				</ul>
			</div>
			<div class="title-header" >
				添加栏目
			</div>
			<form action="" method="post" class="hd-form">
				<input type="hidden" name='cid' value="{$field.cid}" />
				<table class="table1">
					<tr>
						<th class="w100">商品类型</th>
						<td>
							<select name="gtid">
								<list from='$type' name='gt'>
									<option value="{$gt.gtid}" <if value="$gt.gtid eq $goods_type['gtid']">selected=""</if>>{$gt.gt_name}</option>
								</list>
							</select>
						</td>
					</tr>
					<tr>
						<th class="w100">父级</th>
						<td>
							<select name="pid">
								<option value="0">==顶级==</option>
								<list from='$categories' name='c'>
									<option value="{$c.cid}" {$c.disabled} <if value='$c.cid eq $field.pid'>selected=""</if>>{$c._name}</option>
								</list>
							</select>
						</td>
					</tr>
					<tr>
						<th>
							栏目名称
						</th>
						<td>
							<input type="text" name='catname' class="w200" value="{$field.catname}"/>
						</td>
					</tr>
					<tr>
						<th>
							类型
						</th>
						<td>
							<input type="radio" name='cattype' value="1" <if value="$field.cattype eq 1">checked=""</if>/> 封面栏目
							<input type="radio" name='cattype' value="2" <if value="$field.cattype eq 2">checked=""</if>/> 普通栏目
						</td>
					</tr>
					<tr>
						<th>
							价格区间
						</th>
						<td>
							<input type="text" name='price_range' value="{$field.price_range}" class="w200" />
						</td>
					</tr>
					<tr>
						<th>
							关键字
						</th>
						<td>
							<input type="text" name='cat_keywords' class="w200" value="{$field.cat_keywords}"/>
						</td>
					</tr>
					<tr>
						<th>
							描述
						</th>
						<td>
							<textarea name="cat_description" class="w300 h100">{$field.cat_description}</textarea>
						</td>
					</tr>
				</table>
				<div class="position-bottom">
					<input type="submit" class="hd-success" />
				</div>
			</form>
		</div>
	</body>
</html>
